{% extends 'org_base.html' %}
{% load staticfiles %}
{% block title %}<title>机构首页</title>{% endblock %}
{% block custom_css %} {% endblock %}
{% block custom_js %} {% endblock %}
{% block org_path %}
    <section>
	<div class="wp">
		<ul  class="crumbs">
            <li><a href="{% url 'index' %}">首页</a>></li>
			<li><a href="{% url 'org:org_list' %}">课程机构</a>></li>
			<li>机构首页</li>
		</ul>
	</div>
</section>
{% endblock %}
{% block content %}
    <div class="right companycenter layout grouping" >
		<div class="head">
			<h1>全部课程</h1>
			<a class="green fr more" href="{% url 'org:org_course' org.id %}">查看更多&gt;</a>
		</div>
		<div class="brief group_list">
            {% for course in courses %}
                <div class="module1_5 box">
                    <a href="{% url 'course:course_detail' course.id %}"><img width="214" src="{{ MEDIA_URL }}{{ course.image }}"/></a>
                    <div class="des">
                        <a href="{% url 'course:course_detail' course.id %}"><h2>{{ course.name }}</h2></a>
                        <span class="fl">课时：<i class="key">{{ course.learn_time }}min</i></span>
                        <span class="fr">参加人数：{{ course.student_num }}</span>
                    </div>
                    <div class="bottom">
                        <span class="fl">{{ org.name }}</span>
                         <span class="star fr  notlogin {% if course.id in fav_course_ids %}collected{% endif %}" data-favid="13"  data-fav-type="4">
                            {{ course.fav_num }}
                        </span>
                    </div>
                </div>
            {% endfor %}
		</div>
	</div>
    <div class="right companycenter layout" >
    <div class="head">
        <h1>机构教师</h1>
        <a class="green fr more" href="{% url 'org:org_teacher' org.id %}">查看更多  >  </a>
    </div>

    <div class="diarys">
        {% for teacher in teachers %}
        <div class="module5 share company-diary-box" style="padding:10px 0;">
            <div class="left">
                <img class="pic" src="{{ MEDIA_URL }}{{ teacher.image }}"/>
                <p>昵称：{{ teacher.name }}</p>
            </div>
            <div class="right">
                <div class="top">
                    <div class="fl">
                        <a href=""><h1>java开发教程</h1></a>
                        <span>发表于：2015-10-12</span>
                    </div>
                </div>
                <div class="middle" style="border-bottom:0;">课程介绍</div>
            </div>
        </div>
        {% endfor %}
    </div>



</div>
    <div class="right companycenter layout" >
    <div class="head">
        <h1>机构介绍</h1>
        <a class="green fr more" href="{% url 'org:org_desc' org.id %}">查看更多  >  </a>
    </div>
    <div class="cont">{{ org.description }}<a href="/company/desc/22/"><span class="green">[查看更多]</span></a></div>
</div>
{% endblock %}